﻿function Config($routeProvider, $httpProvider) {
    $routeProvider.when('/', {
        templateUrl: '/app/Views/Home.html',
        title: 'Home'
    }).when('/register', {
        templateUrl: '/app/Views/Register.html',
        title: 'Register'
    }).otherwise({
        redirectTo: '/'
    });
    $httpProvider.interceptors.push('AuthFactory');
}
Config.$inject = ['$routeProvider', '$httpProvider'];